package com.clothing.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.clothing.dao.FriendDao;
import com.clothing.entity.Friend;
import com.clothing.entity.Friend.FriendStatus;
import com.clothing.service.FriendService;
import com.clothing.utils.page.Page;
import com.clothing.utils.page.Pageable;

/**
 * @ClassName: FriendServiceImpl 
 * @Description: TODO(Service) 
 * @author Charles.Tao 
 * @date 2017年9月6日 下午3:43:34 
 * @version 1.0
 */
@Service
public class FriendServiceImpl extends BaseServiceImpl<Friend, Long> implements FriendService
{
    @Autowired
    private FriendDao friendDao;

    @Override
    public Friend findFriend(Long userOne, Long userTwo)
    {
        return friendDao.findFriend(userOne, userTwo);
    }

    @Override
    public Page<Friend> findFriends(Long userId, FriendStatus status, Pageable pageable)
    {
        return friendDao.findFriends(userId, status, pageable);
    }
}
